from Products.CMFCore.utils import getToolByName
from zope.component import queryUtility
from Products.CMFCore.interfaces import ISiteRoot

def rated(obj, event):
    import pdb
    pdb.set_trace()
    portal = queryUtility(ISiteRoot)
    wftool = getToolByName(portal, 'portal_workflow')

    wftool.doActionFor(obj, action='publish')
